<!--28外啮合齿面接触应力、传递误差分析及优化-->
<template>
  <div class="sum" style="width: 100%;height: 100%;">
    <a-row class="all" style="width: 100%;height: 100%;overflow-y: hidden">
      <a-col class="left" :span="16" style="height: 100%">
        <a-row class="left_top" style="height: 100%">
          <a-row class="left_top_top" style="height: 75%">
            <a-col class="data_container" :span="12" style="height: 100%">
              <a-row style="width: 100%;height: 3.5%;background: #D7D7D7;border-radius: 3px">几何参数输入</a-row>
              <a-row style="width: 100%;height: 96.5%;">
                <a-col :span="12" style="height: 100%;text-align: right;padding-right: 10px">
                  <a-row style="height: 3.7%"></a-row>
                  <a-row style="height: 3.7%">模数（mm）</a-row>
                  <a-row style="height: 3.7%">螺旋角（°）</a-row>
                  <a-row style="height: 4.3%;">齿轮螺旋角旋向</a-row>
                  <a-row style="height: 3.7%">法向压力角（°）</a-row>
                  <a-row style="height: 3.7%">齿数</a-row>
                  <a-row style="height: 3.7%">法向变位系数</a-row>
                  <a-row style="height: 3.7%">工作中心距（mm）</a-row>
                  <a-row style="height: 3.7%">齿宽（mm）</a-row>
                  <a-row style="height: 3.7%">齿圈左端距小轮左端距离（mm）</a-row>
                  <a-row style="height: 3.7%">齿宽切片数量</a-row>
                  <a-row style="height: 3.7%">法向齿顶高系数</a-row>
                  <a-row style="height: 3.7%">法向顶隙系数</a-row>
                  <a-row style="height: 3.7%">齿顶导角高度（直径）（mm）</a-row>
                  <a-row style="height: 3.7%">小轮内径/齿圈外径（mm）</a-row>
                  <a-row style="height: 3.7%">辐板厚度（mm）</a-row>
                  <a-row style="height: 3.7%">轮缘厚度系数</a-row>
                  <a-row style="height: 3.7%">弹性模量（Mpa）</a-row>
                  <a-row style="height: 3.7%">泊松比</a-row>
                  <a-row style="height: 4.3%;">误差输入形式</a-row>
                  <a-row style="height: 3.7%">安装误差（um）</a-row>
                  <a-row style="height: 3.7%"><label v-if="dinzhi">安装误差角度（°）</label></a-row>
                  <a-row style="height: 3.7%">制造误差（um）</a-row>
                  <a-row style="height: 3.7%"><label v-if="dinzhi">制造误差角度（°）</label></a-row>
                  <a-row style="height: 10%;line-height: 20px">
                    <a-row style="height: 30%; width: 100%;" v-if="suiji">单齿基节偏差(um)</a-row>
                    <a-row style="height: 30%; width: 100%;" v-if="suiji">基节累计偏差(um)</a-row>
                    <label v-if="dinzhi">基节累计偏差（um）</label></a-row>
                </a-col>
                <a-col :span="12" style="height: 100%;">
                  <a-row style="height: 3.3%;width: 100%;text-align: center;">
                    <a-col :span="12" style="height: 100%;">小轮</a-col>
                    <a-col :span="12" style="height: 100%;">大轮</a-col>
                  </a-row>
                  <a-row style="width: 100%;height: 3.7%;text-align: center"><input style="width: 85%;" type="text" v-model="input_data.m_n"/></a-row>
                  <a-row style="width: 100%;height: 3.7%;text-align: center"><input style="width: 85%;" type="text" v-model="input_data.helix_angle"/></a-row>
                  <a-row style="width: 100%;height: 4.3%;text-align: left;position: relative">
                    <select style="width:35%;height: 100%;border-radius: 3px;text-align:center;text-align-last:center;position: absolute;left: 20px;top: 1.5px" v-model="xz1">
                      <option>左旋</option>
                      <option>右旋</option>
                    </select>
                  </a-row>
                  <a-row style="width: 100%;height: 3.7%;text-align: center"><input style="width: 85%;" type="text" v-model="input_data.a_n"/></a-row>
                  <a-row style="width: 100%;height: 3.7%;text-align: center">
                    <a-col :span="12" style="height: 100%;"><input style="" type="text" v-model="input_data.Zsun"/></a-col>
                    <a-col :span="12" style="height: 100%;"><input style="" type="text" v-model="input_data.Zplanet"/></a-col>
                  </a-row>
                  <a-row style="width: 100%;height: 3.7%;text-align: center">
                    <a-col :span="12" style="height: 100%;">{{result_data.result03}}</a-col>
                    <a-col :span="12" style="height: 100%;"><input style="" type="text" v-model="input_data.x_p"/></a-col>
                  </a-row>
                  <a-row style="width: 100%;height: 3.7%;text-align: center"><input style="width: 85%" type="text" v-model="input_data.work_center"/></a-row>
                  <a-row style="width: 100%;height: 3.7%;text-align: center">
                      <a-col :span="12" style="height: 100%;"><input style="" type="text" v-model="input_data.face_s"/></a-col>
                      <a-col :span="12" style="height: 100%;"><input style="" type="text" v-model="input_data.face_p"/></a-col>
                  </a-row>
                  <a-row style="width: 100%;height: 3.7%;text-align: center"><input style="width: 85%;" type="text" v-model="input_data.delta_face"/></a-row>
                  <a-row style="width: 100%;height: 3.7%;text-align: center"><input style="width: 85%;" type="text" v-model="input_data.n_slice"/></a-row>
                  <a-row style="height: 29.6%;width: 100%;text-align: center">
                    <a-col :span="12" style="height: 100%;text-align: center;">
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.addendum_factor_s"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.tip_factor_s"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.d_chamfer_s"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.d_inner_s"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.web_thickness_s"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.SR_s"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.E_s"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.v_s"/></a-row>
                    </a-col>
                    <a-col :span="12" style="height: 100%;">
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.addendum_factor_p"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.tip_factor_p"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.d_chamfer_p"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.d_inner_p"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.web_thickness_p"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.SR_p"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.E_p"/></a-row>
                      <a-row style="width: 100%;height: 12.5%;"><input style="" type="text" v-model="input_data.v_p"/></a-row>
                    </a-col>
                  </a-row>
                  <a-row style="width: 100%;height: 3.7%;text-align: center">
                    <select style="width:85%;height: 100%;border-radius: 3px;text-align:center;text-align-last:center;" v-model="xz2" @click="gaibian">
                      <option>定值</option>
                      <option>随机</option>
                    </select>
                  </a-row>
                  <a-row style="width: 100%;height: 22.1%;text-align: center;">
                    <a-col :span="12" style="height: 100%;">
                      <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.As"/></a-row>
                      <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.bAs" v-if="dinzhi"/></a-row>
                      <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.Es"/></a-row>
                      <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.bEs" v-if="dinzhi"/></a-row>
                      <a-row style="width: 100%;height: 16.6%;">
                        <input type="text"  v-if="suiji" v-model="input_data.pitch_error_single_s"/>
                        <a-upload style="width: 70%;height: 98%;" :showUploadList="false" :maxCount="1" :customRequest="customRequest1" name="file">
                        <button style="width: 100%;height: 100%;" value="" v-if="dinzhi">导入</button>
                        </a-upload>
                      </a-row>
                      <a-row style="width: 100%;height: 16.6%;line-height: 12px">
                        <input type="text" v-if="suiji" v-model="input_data.pitch_error_whole_s"/>
                        <p v-if="dinzhi">注：导入基节累计偏差文件格式为.xls或.xlsx(无需表头)</p>
<!--                        <button style="width: 70%;height: 98%;" value="" v-if="dinzhi">删除</button>-->
                      </a-row>
                    </a-col>
                    <a-col :span="12" style="height: 100%;">
                      <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.Ap"/></a-row>
                      <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.bAp" v-if="dinzhi"/></a-row>
                      <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.Ep"/></a-row>
                      <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.bEp" v-if="dinzhi"/></a-row>
                      <a-row style="width: 100%;height: 16.6%;">
                        <input type="text"  v-if="suiji" v-model="input_data.pitch_error_single_s"/>
                        <a-upload style="width: 70%;height: 98%;" :showUploadList="false" :maxCount="1" :customRequest="customRequest1" name="file">
                        <button style="width: 100%;height: 100%;" value="" v-if="dinzhi">导入</button>
                        </a-upload>
                      </a-row>
                      <a-row style="width: 100%;height: 16.6%;line-height: 12px">
                        <input type="text"  v-if="suiji" v-model="input_data.pitch_error_whole_p"/>
<!--                        <button style="width: 70%;height: 98%;" value="" v-if="dinzhi">删除</button>-->
                      </a-row>
                    </a-col>
                  </a-row>
                  <a-row style="width: 100%;height: 3.8%;text-align: center;">
<!--                      <button style="width: 85%;line-height: 15px;height: 100%;">显示导入基节累积偏差</button>-->
                  </a-row>
                </a-col>
              </a-row>

            </a-col>
            <a-col class="data_container" :span="12" style="height: 100%;border-radius: 3px;">
              <a-row style="width: 100%;height: 3.5%;background: #D7D7D7;border-radius: 3px">齿轮修形参数输入</a-row>
              <a-row style="width: 100%;height: 96.5%;">
                  <a-col :span="12" style="height: 100%;text-align: right;overflow: hidden;padding-right: 5px">
                    <a-row style="width: 100%;height: 4%;"></a-row>
                    <a-row style="width: 100%;height: 4%;">齿向修形左评价点位置(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿向修形右评价点位置(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿向整体抛物线修鼓量(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">左评价点齿向螺旋角修形量(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">右评价点齿向螺旋角修形量(mm)</a-row>
                    <a-row style="width: 100%;height: 5%;line-height: 23px">齿向左端/右端修行方式</a-row>
                    <a-row style="width: 100%;height: 4%;">齿向左端修形长度(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿向左端修形量(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿向右端修形长度(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿向右端修形量(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿合起始圆直径(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">有效齿顶圆直径(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿廓修形下评价点直径(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿廓修形上评价点直径(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿廓整体抛物线修鼓量(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">下评价点齿廓压力角修形量(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">上评价点齿廓压力角修形量(mm)</a-row>
                    <a-row style="width: 100%;height: 5%;line-height: 23px">齿廓齿根/齿顶修形方式</a-row>
                    <a-row style="width: 100%;height: 4%;">齿廓齿根修形起始圆直径(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿廓齿根修形量(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿廓齿顶修形起始圆直径(mm)</a-row>
                    <a-row style="width: 100%;height: 4%;">齿廓齿顶修形量(mm)</a-row>
                    <a-row style="width: 100%;height: 5%;">齿面接触应力结果显示</a-row>
                  </a-col>
                  <a-col :span="12" style="height: 100%;">
                    <a-row style="width: 100%;height: 24%;text-align: center">
                      <a-col :span="12" style="height: 100%;">
                        <a-row style="width: 100%;height: 16.6%;">小轮</a-row>
                        <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.limit_lead_left_s"/></a-row>
                        <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.limit_lead_right_s"/></a-row>
                        <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.crown_whole_relief_s"/></a-row>
                        <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.helix_relief_left_s"/></a-row>
                        <a-row style="width: 100%;height: 17%;"><input style="" type="text" v-model="input_data.helix_relief_right_s"/></a-row>
                      </a-col>
                      <a-col :span="12" style="height: 100%;">
                        <a-row style="width: 100%;height: 16.6%;">大轮</a-row>
                        <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.limit_lead_left_p"/></a-row>
                        <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.limit_lead_right_p"/></a-row>
                        <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.crown_whole_relief_p"/></a-row>
                        <a-row style="width: 100%;height: 16.6%;"><input style="" type="text" v-model="input_data.helix_relief_left_p"/></a-row>
                        <a-row style="width: 100%;height: 17%;"><input style="" type="text" v-model="input_data.helix_relief_right_p"/></a-row>
                      </a-col>
                    </a-row>
                    <a-row style="height: 5%;width: 100%;text-align: center;">
                      <select style="width: 85%;height: 100%;border-radius: 3px;text-align:center;text-align-last:center;" v-model="xz3">
                        <option>抛物线</option>
                        <option>直线</option>
                      </select>
                    </a-row>
                    <a-row style="height: 44%;width: 100%;text-align: center">
                      <a-col :span="12" style="height: 100%;">
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.crown_double_length_left_s"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.crown_double_relief_left_s"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.crown_double_length_right_s"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.crown_double_relief_right_s"/></a-row>
                        <a-row style="width: 100%;height: 9%;">{{result_data.result04}}</a-row>
                        <a-row style="width: 100%;height: 9%;">{{result_data.result05}}</a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.limit_diameter_down_s"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.limit_diameter_up_s"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.profile_whole_relief_s"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.pressure_relief_down_s"/></a-row>
                        <a-row style="width: 100%;height: 10%;"><input style="" type="text" v-model="input_data.pressure_relief_up_s"/></a-row>
                      </a-col>
                      <a-col :span="12" style="height: 100%;">
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.crown_double_length_left_p"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.crown_double_relief_left_p"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.crown_double_length_right_p"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.crown_double_relief_right_p"/></a-row>
                        <a-row style="width: 100%;height: 9%;">{{result_data.result06}}</a-row>
                        <a-row style="width: 100%;height: 9%;">{{result_data.result07}}</a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.limit_diameter_down_p"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.limit_diameter_up_p"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.profile_whole_relief_p"/></a-row>
                        <a-row style="width: 100%;height: 9%;"><input style="" type="text" v-model="input_data.pressure_relief_down_p"/></a-row>
                        <a-row style="width: 100%;height: 10%;"><input style="" type="text" v-model="input_data.pressure_relief_up_p"/></a-row>
                      </a-col>
                    </a-row>
                    <a-row style="height: 5%;width: 100%;text-align: center">
                      <select style="width: 85%;height: 100%;border-radius: 3px;text-align:center;text-align-last:center;" v-model="xz4">
                        <option>抛物线</option>
                        <option>直线</option>
                      </select>
                    </a-row>
                    <a-row style="height: 16%;width: 100%;text-align: center">
                      <a-col :span="12" style="height: 100%;">

                        <a-row style="width: 100%;height: 25%;"><input style="" type="text" v-model="input_data.profile_length_down_s_diameter"/></a-row>
                        <a-row style="width: 100%;height: 25%;"><input style="" type="text" v-model="input_data.profile_relief_down_s"/></a-row>
                        <a-row style="width: 100%;height: 25%;"><input style="" type="text" v-model="input_data.profile_relief_down_s"/></a-row>
                        <a-row style="width: 100%;height: 25%;"><input style="" type="text" v-model="input_data.profile_relief_up_s"/></a-row>

                      </a-col>
                      <a-col :span="12" style="height: 100%;">

                        <a-row style="width: 100%;height: 25%;"><input style="" type="text" v-model="input_data.profile_length_down_p_diameter"/></a-row>
                        <a-row style="width: 100%;height: 25%;"><input style="" type="text" v-model="input_data.profile_relief_down_p"/></a-row>
                        <a-row style="width: 100%;height: 25%;"><input style="" type="text" v-model="input_data.profile_relief_down_p"/></a-row>
                        <a-row style="width: 100%;height: 25%;"><input style="" type="text" v-model="input_data.profile_relief_up_p"/></a-row>

                      </a-col>
                    </a-row>
                    <a-row style="height: 5%;width: 100%;text-align: center;">
                      <select style="width: 85%;height: 100%;border-radius: 3px;text-align:center;text-align-last:center;" v-model="xz5">
                        <option>平面</option>
                        <option>立体</option>
                      </select>
                    </a-row>
                  </a-col>
                </a-row>
            </a-col>
          </a-row>
          <a-row class="data_container" style=";height: 20%;border-radius: 3px;">
            <a-row style="width: 100%;height: 13%;background: #D7D7D7;border-radius: 3px">其他参数输入</a-row>
            <a-row style="width: 100%;height: 87%;">
              <a-col :span="8" style="height: 100%">
                <a-row style="height: 100%;width: 100%;">
                  <a-col :span="12" style="text-align: right;height: 100%;">
                    <a-row style="height: 20%;width: 100%;">使用系数</a-row>
                    <a-row style="height: 20%;width: 100%;">动载系数</a-row>
                    <a-row style="height: 20%;width: 100%;">齿间载荷分布系数</a-row>
                    <a-row style="height: 20%;width: 100%;">小轮转速(rpm)</a-row>
                    <a-row style="height: 20%;width: 100%;">输入扭矩(N.mm)</a-row>
                  </a-col>
                  <a-col :span="12" style="text-align: center;height: 100%;">
                    <a-row style="height: 20%;width: 100%;"><input type="text" style="width: 55%;" v-model="input_data.K_A_external"/></a-row>
                    <a-row style="height: 20%;width: 100%;"><input type="text" style="width: 55%;" v-model="input_data.K_V"/></a-row>
                    <a-row style="height: 20%;width: 100%;"><input type="text" style="width: 55%;" v-model="input_data.K_Ha"/></a-row>
                    <a-row style="height: 20%;width: 100%;"><input type="text" style="width: 55%;" v-model="input_data.Ws"/></a-row>
                    <a-row style="height: 20%;width: 100%;"><input type="text" style="width: 55%;" v-model="input_data.torque_input"/></a-row>
                  </a-col>
                </a-row>
              </a-col>
              <a-col :span="8" style="height: 100%;">
                <a-col :span="12" style="height: 100%;text-align: right">
                  <a-row style="height: 20%;width: 100%;">输入齿轮</a-row>
                  <a-row style="height: 20%;width: 100%;">输入扭矩位置</a-row>
                  <a-row style="height: 20%;width: 100%;">小轮初始啮合齿数</a-row>
                  <a-row style="height: 20%;width: 100%;">大轮初始啮合齿数</a-row>
                  <a-row style="height: 20%;width: 100%;"></a-row>
                </a-col>
                <a-col :span="12" style="height: 100%;text-align: center">
                  <a-row style="height: 20%;width: 100%;">
                    <select v-model="xz6" style="height: 100%;width: 55%;">
                      <option>小轮</option>
                      <option>大轮</option>
                    </select>
                  </a-row>
                  <a-row style="height: 20%;width: 100%;">
                    <select v-model="xz7" style="height: 100%;width: 55%;">
                      <option>左侧</option>
                      <option>右侧</option>
                    </select>
                  </a-row>
                  <a-row style="height: 20%;width: 100%;"><input type="text" style="width: 55%;" v-model="input_data.start_number_s"/></a-row>
                  <a-row style="height: 20%;width: 100%;"><input type="text" style="width: 55%;" v-model="input_data.start_number_p"/></a-row>
                  <a-row style="height: 20%;width: 100%;"></a-row>
                </a-col>
              </a-col>
              <a-col :span="8" style="height: 100%;">
                <a-col :span="12" style="height: 100%;text-align: right">
                  <a-row style="height: 20%;width: 100%;">小轮模拟圈数</a-row>
                  <a-row style="height: 20%;width: 100%;">基节模拟网格数</a-row>
                  <a-row style="height: 20%;width: 100%;">输出形式</a-row>
                  <a-row style="height: 20%;width: 100%;">迭代误差</a-row>
                  <a-row style="height: 20%;width: 100%;"></a-row>
                </a-col>
                <a-col :span="12" style="height: 100%;text-align: center">
                  <a-row style="height: 20%;width: 100%;"><input type="text" style="width: 55%;" v-model="input_data.N_sun"/></a-row>
                  <a-row style="height: 20%;width: 100%;"><input type="text" style="width: 55%;" v-model="input_data.number"/></a-row>
                  <a-row style="height: 20%;width: 100%;">
                    <select v-model="xz8" style="height: 100%;width: 55%;">
                      <option>异侧</option>
                      <option>同侧</option>
                    </select>
                  </a-row>
                  <a-row style="height: 20%;width: 100%;"><input type="text" style="width: 55%;" v-model="input_data.tolerance"/></a-row>
                  <a-row style="height: 20%;width: 100%;"></a-row>
                </a-col>
              </a-col>
            </a-row>
          </a-row>
        </a-row>
      </a-col>
      <a-col class="right" :span="8" style=";height: 100%;border-radius: 3px;overflow:hidden;">
        <a-row style="width: 100%;height: 14%; " class="data_container">
          <a-row style="width: 100%;height: 22%;background: #D7D7D7;border-radius: 3px">结果显示</a-row>
          <a-row style="width: 100%;height: 78%;">
            <a-col :span="12" style="height: 100%;text-align: right;">
              <a-row style="height: 50%;width: 100%;line-height: 31px">齿面最大接触应力(Mpa)</a-row>
              <a-row style="height: 50%;width: 100%;line-height: 31px">传递误差峰峰值(um)</a-row>
            </a-col>
            <a-col :span="12" style="height: 100%;text-align: center">
              <a-row style="height: 50%;width: 100%;line-height: 31px">{{result_data.result01}}</a-row>
              <a-row style="height: 50%;width: 100%;line-height: 31px">{{result_data.result02}}</a-row>
            </a-col>
          </a-row>
        </a-row>
        <a-row style="width: 100%;height: 12%;position:relative;" class="data_container">
          <button style="width: 20%;height: 60%;background: #6dd400;position:absolute; left: 20px;margin-top: 20px" @click="config">计算</button>
        </a-row>
        <a-row style="width: 100%;height: 18%;" class="data_container">
          <a-row style="width: 100%;height: 15%;background: #D7D7D7;border-radius: 3px">结果输出</a-row>
          <a-row style="width: 100%;height: 85%;">
            <a-col :span="12" style="height: 100%;text-align: right;">
              <a-row style="height: 33.3%;width: 100%;line-height: 31px">单位齿宽啮合刚度(N/um.mm)</a-row>
              <a-row style="height: 33.3%;width: 100%;line-height: 31px">显示小轮接触情况的最小齿数</a-row>
              <a-row style="height: 33.4%;width: 100%;line-height: 31px">显示小轮接触情况的最大齿数</a-row>
            </a-col>
            <a-col :span="12" style="height: 100%;text-align: center">
              <a-row style="height: 33.3%;width: 100%;line-height: 31px">{{result_data.result08}}</a-row>
              <a-row style="height: 33.3%;width: 100%;line-height: 31px"><input type="text" v-model="input_data.show_gear_number_s_min"/></a-row>
              <a-row style="height: 33.4%;width: 100%;line-height: 31px"><input type="text" v-model="input_data.show_gear_number_s_max"/></a-row>
            </a-col>
          </a-row>
        </a-row>
        <a-row style="width: 100%;height: 56%;" class="data_container">
          <a-col :span="2" style="height: 100%;"></a-col>
          <a-col :span="22" style="height: 100%;">
            <div style="height: 80%;width: 100%;margin-top: 10px">
              <a-row style="height: 14%;width: 100%;" >注：1、分析固定坐标系的X轴方向为水平向右，Y轴方向为垂直向下</a-row>
              <a-row style="height: 13%;width: 100%;" >2、角度/转速均以X轴为基准顺时针计量</a-row>
              <a-row style="height: 15%;width: 100%;" >3、齿数以顺时针计数；</a-row>
              <a-row style="height: 14%" >4、转速顺时针为正、逆时针为负；</a-row>
              <a-row style="height: 13%" >5、啮合刚度的计算适应于直齿轮和螺旋角小于45度的齿轮。</a-row>
              <a-row style="height: 15%" >6、有效齿轮指实际接触的齿宽</a-row>
            </div>
          </a-col>
        </a-row>
      </a-col>
    </a-row>
  </div>
</template>
<script>


import {Nametransmisson} from "@/api/file";
import {firedelete, firetext} from "../../../api/file";

export default {
  name: "Nametransmisson",
  created() {
    document.title = '外啮合齿面接触应力、传递误差分析及优化'
    this.$store.state.file.key = 79
  },
  data(){
    return{
      input_data:this.$store.state.file.dataList[79],
      form2:{
        uuids:[]
      },
      result_data:{
        result01: 'Static Text',
        result02: 'Static Text',
        result03: 'Text',
        result04: 'Text',
        result05: 'Text',
        result06: 'Text',
        result07: 'Text',
        result08: 'Text',
      },
      xz1:'左旋',
      xz2:'定值',
      xz3:'抛物线',
      xz4:'抛物线',
      xz5:'平面',
      xz6:'小轮',
      xz7:'左侧',
      xz8:'异侧',
      suiji:false,
      dinzhi:true
    }
  },
  mounted(){
    //绑定页面退出事件
    window.onbeforeunload= (e)=>{
      e = e || window.event;
      if (e) {
        e.returnValue = '关闭提示';
      }
      this.delete()//调用自己的方法
      // Chrome, Safari, Firefox 4+, Opera 12+ , IE 9+
      return '关闭提示';
    };
  },
  methods:{
    //删除载荷谱
    async delete(){
      this.form2.uuids=this.form2.uuids.toString();//将载荷谱文件数组转成字符串
      await firedelete(this.form2).then(res => {
        console.log(res);
      })
    },
    customRequest1(data)
    {
      const formData = new FormData()
      formData.append('fileName', data.file)
      firetext(formData)
          .then(res => {//这里需要用箭头函数，如果不用箭头函数里面的this就不是外面那个this
            console.log(res)
            this.pitch_error_whole_s=res.data.filedata;
            this.form2.uuids.push(res.data.uuid);
          })
          .catch(error => {
            console.log(error);
          });
    },
    customRequest2(data)
    {
      const formData = new FormData()
      formData.append('fileName', data.file)
      firetext(formData)
          .then(res => {//这里需要用箭头函数，如果不用箭头函数里面的this就不是外面那个this
            console.log(res)
            this.pitch_error_whole_p=res.data.filedata;
            this.form2.uuids.push(res.data.uuid);
          })
          .catch(error => {
            console.log(error);
          });
    },
    gaibian(){
      if(this.xz2=='定值'){
        this.suiji=false;
        this.dinzhi=true;
      }else{
        this.suiji=true;
        this.dinzhi=false;
      }
    },
    config(){
      if(this.xz1=='左旋'){
        this.input_data.rotation_direction_sun='1';
      }else{
        this.input_data.rotation_direction_sun='2';
      }
      if(this.xz2=='定值'){
        this.input_data.error_form='1';
      }else{
        this.input_data.error_form='2';
      }
      if(this.xz3=='抛物线'){
        this.input_data.lead_relief_form='1';
      }else{
        this.input_data.lead_relief_form='2';
      }
      if(this.xz4=='抛物线'){
        this.input_data.profile_relief_form='1';
      }else{
        this.input_data.profile_relief_form='2';
      }
      if(this.xz5=='平面'){
        this.input_data.show_stress='1';
      }else{
        this.input_data.show_stress='2';
      }
      if(this.xz6=='小轮'){
        this.input_data.torque_input_gear='1';
      }else{
        this.input_data.torque_input_gear='2';
      }
      if(this.xz7=='左侧'){
        this.input_data.torque_input_position_mid='1';
      }else{
        this.input_data.torque_input_position_mid='2';
      }
      if(this.xz8=='异侧'){
        this.input_data.input_output_side='1';
      }else{
        this.input_data.input_output_side='2';
      }
      Nametransmisson(this.input_data).then(res=>{
        this.result_data.result01=res[6].result;
        this.result_data.result02=res[7].result;
        this.result_data.result03=res[1].result;
        this.result_data.result04=res[2].result;
        this.result_data.result05=res[4].result;
        this.result_data.result06=res[3].result;
        this.result_data.result07=res[5].result;
        this.result_data.result08=res[0].result;
      })
    }
  }
}
</script>
<style scoped>
input{
  height: 17px;
  text-align:center;
  width: 70%;
}
.data_container{
  border: 0.5px solid rgba(231, 231, 231, 0.486);
  border-radius: 5px;
  box-shadow:2px 2px 3px #aaaaaa;
}
</style>


